﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO
{
    public static class SanPhamDAO
    {
        public static List<SANPHAM> layDSSP()
        {
            QL_HuongRungEntities db = new QL_HuongRungEntities();
            List<SANPHAM> arrSP = db.SANPHAM.ToList();
            return arrSP;
        }

        public static SANPHAM laySP(int maSP)
        {
            QL_HuongRungEntities db = new QL_HuongRungEntities();
            SANPHAM sp = db.SANPHAM.Find(maSP);
            return sp;
        }
    }
}
